package com.ruoyi.caigou.mapper;

import com.ruoyi.system.api.domain.caigou.BuyBackReq;

import java.util.List;

/**
 * 采购退货申请单Mapper接口
 *
 * @author wl
 * @date 2024-10-28
 */
public interface BuyBackReqMapper {
    /**
     * 查询采购退货申请单
     *
     * @param id 采购退货申请单主键
     * @return 采购退货申请单
     */
    public BuyBackReq selectBuyBackReqById(Integer id);

    /**
     * 查询采购退货申请单列表
     *
     * @param buyBackReq 采购退货申请单
     * @return 采购退货申请单集合
     */
    public List<BuyBackReq> selectBuyBackReqList(BuyBackReq buyBackReq);

    /**
     * 新增采购退货申请单
     *
     * @param buyBackReq 采购退货申请单
     * @return 结果
     */
    public int insertBuyBackReq(BuyBackReq buyBackReq);

    /**
     * 修改采购退货申请单
     *
     * @param buyBackReq 采购退货申请单
     * @return 结果
     */
    public int updateBuyBackReq(BuyBackReq buyBackReq);

    /**
     * 删除采购退货申请单
     *
     * @param id 采购退货申请单主键
     * @return 结果
     */
    public int deleteBuyBackReqById(Integer id);

    /**
     * 批量删除采购退货申请单
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteBuyBackReqByIds(Integer[] ids);

    int selectBuyBackReqCountByCode(String code);

    BuyBackReq selectBuyBackReqByCode(String code);

    List<BuyBackReq> selectBuyBackReqListByIds(Integer[] ids);
}
